﻿using UnityEngine;

[RequireComponent(typeof(Renderer))]
public class RendererLayer : MonoBehaviour
{
	[SortingLayer]
	public string sortingLayer;
	public int sortingOrder;
	private void Awake()
	{
		renderer.sortingLayerName = sortingLayer;
		renderer.sortingOrder = sortingOrder;
	}
}
